<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>应收账款页面</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=39cd89cd">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=16f1e6f3">
    <style>
        .table > tbody > tr > td {
            line-height: 24px;
            max-height: 24px;
            overflow: hidden;
        }

        span.lineOne {
            line-height: 28px;
            height: 28px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
        }

        .div-td-content-more {
            height: auto;
            line-height: 20px;
            background-color: #d3e8fd;
            padding: 8px 6px;
            border: 1px solid #e8e8ea;
        }
        .divCheck{
            height: 100%;
            margin-left: 5px;
            line-height: 25px;
        }
        .divCheck input{
            float: left;
            margin-top: 7px;
            margin-right: 5px;
        }
        .div-td-content-more i {
            width: 15px;
            height: 12px;
            background: url("/dist/img/more-icon.png");
            position: absolute;
            left: 50px;
            top: -12px;
        }
        body{
            background: #F5F5F7;
        }
        .basicMessage{
            width:100%;
            height:auto;
            background: #fff;
            margin-bottom: 5px;
            line-height: 20px;
        }
        .basicMessage .brand{
            font-size: 20px;
            font-weight: bold;
            padding-left: 5px;
        }
        .basicMessage .num{
            color: #999B99;
            padding-left: 5px;
            border-bottom: 1px dotted #F8F8F8;
        }
        .basicMessage .price{
            font-size: 18px;
            color: #DC7935;
            font-weight: bold;
            padding-left: 5px;
        }
        .basicMessage .type{
            padding-left: 5px;
        }
        .basicMessage .phone{
            padding-left: 5px;
        }
        .btns{
            width: 100%;
            height:40px;
            line-height: 40px;
            background: #fff;
            text-align: center;
            display: flex;
            justify-content: space-around;
            margin-bottom: 10px;
            /*border-bottom: 1px solid #2a8cec;*/
        }
        .finish{
            width:50%;
            color: #2a8cec;
            border-bottom: 1px solid #2a8cec;
        }
        .unFinish{
            width:50%;
            text-align: center;
        }
        .month{
            width:100%;
            height:40px;
            line-height: 40px;
            background: #fff;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #F8F8F8;
        }
        .monthDan{
            padding-left: 5px;
            text-align: left;
        }
        .data{
            color: gray;
            text-align: right;
            padding-right: 5px;
        }
        .moneyList{
            width:100%;
            line-height: 30px;
            /*text-align: center;*/
            margin:0 auto;
            background: #fff;
            position: relative;
        }
        .moneyList .left{
            width:50%;
            text-align: center;
            border-right: 1px solid #F8F8F8;
            line-height: 25px;
        }
        .moneyList .middle{
            width:50%;
            text-align: center;
            border-right: 1px solid #F8F8F8;
            line-height: 25px;
        }
        .moneyList .right{
            width:50%;
            text-align: center;
            float: right;
            background: #fff;
            position: absolute;
            top:15px;
            right:0;
            margin:30px auto;
        }
        .moneyList .right .money{
            font-size: 26px;
            font-weight: bold;
        }
        .shouldMoney{
            color: red;
        }
        /*.monthFinish{*/
            /*width:100%;*/
            /*height:40px;*/
            /*line-height: 40px;*/
            /*background: #fff;*/
            /*display: flex;*/
            /*justify-content: space-between;*/
            /*!*margin:10px auto;*!*/
            /*border-top: 1px solid #f8f8f8;*/
            /*border-bottom: 1px solid #f8f8f8;*/
        /*}*/
        /*.monthMoney{*/
            /*padding-left: 5px;*/
        /*}*/
        /*.monthFinish .money{*/
            /*font-size: 12px;*/
            /*padding-right: 5px;*/
            /*font-weight: normal;*/
        /*}*/
        .customer{
            width:100%;
            background: #fff;
            text-align: center;
            padding:5px 0;
            border-bottom: 1px solid #f8f8f8;
            display: flex;
            justify-content: space-between;
            border-top: 1px solid #f8f8f8;
        }
        .customer .money{
           font-size: 12px;
            font-weight: normal;
        }
        .customer p{
            margin:10px auto;
        }
        .customer .left{
            border-right: 1px solid #F8F8F8;
            padding: 0 28px;
        }
        .customer .middle{
            border-right: 1px solid #F8F8F8;
            padding: 0 28px;
        }
        .customer .right{
            padding: 0 28px;
        }
        .history{
            width:100%;
            height:auto;
            background: #fff;
        }
        .history .title{
            height:25px;
            line-height: 25px;
            background: #f8f8f8;
            text-align: center;
            border-bottom: 1px solid #F8F8F8;
        }
        .historyMoney{
            width:100%;
            line-height: 40px;
            padding:0;
            margin:0;
            border-bottom: 1px solid #F8F8F8;
            display: flex;
            justify-content: space-between;
        }
        .historyMoney .month{
            float: left;
            border-bottom: none;
            line-height: 40px;
            padding-left: 50px;
        }
        .historyMoney .money{
            float: right;
            font-size: 12px;
            font-weight: normal;
            padding-right: 50px;
        }
        li{
            list-style: none;
        }
        .table{
            background: #fff;
        }
        .table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {
            border: 1px solid #fff;
        }
        .table .td-title{
            background:#fff;
        }
        .table .td-title{
            line-height: 40px;
            text-align: center;
        }
        .table .td-module{
            line-height: 28px;
            text-align: center;
            background: #F8F8F8;
            border: 1px solid #F8F8F8;
        }
        .table .td-value{
            line-height: 30px;
            text-align: left;
        }
    </style>
</head>
<body>
<section class="content" id="app" v-cloak>
    <div class="div-td-content-more"><i></i></div>
    <div class="row">
        <div class="box-body no-padding iframeH" style="overflow: auto;" id="scrollDiv">
            <!--<div class="basicMessage">-->
                <!--<p class="brand">挖掘机 利勃海尔 ES210C</p>-->
                <!--<p class="num">序列号: <span>44774</span></p>-->
                <!--<p class="price">2,480,000.00</p>-->
                <!--<p class="type">付款方式: <span>内部分期</span></p>-->
                <!--<p class="phone">区域经理电话: <span>13333101558</span></p>-->
            <!--</div>-->
            <table class="table  table-bordered text-center">
                <tr>
                    <td class="td-module" colspan="4">基本信息</td>
                </tr>
                <tr>
                    <td class="td-title">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</td>
                    <td class="td-value" style="border-right: 1px solid #f8f8f8;">{{contract.main.buyer}}</td>
                    <td class="td-title">电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话</td>
                    <td class="td-value">{{contract.main.buyerTel}}</td>
                </tr>
                <tr>
                    <td class="td-title">设备类型</td>
                    <td class="td-value" style="border-right: 1px solid #f8f8f8;"> {{contract.main.deviceType}}</td>
                    <td class="td-title">品&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;牌</td>
                    <td class="td-value">{{contract.main.brandName}}</td>
                </tr>
                <tr>
                    <td class="td-title">型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</td>
                    <td class="td-value" style="border-right: 1px solid #f8f8f8;">{{contract.main.modelName}}</td>
                    <td class="td-title">序&nbsp;列&nbsp;号</td>
                    <td class="td-value">{{contract.main.serialNo}}</td>
                </tr>
                <tr>
                    <td class="td-title">付款方式</td>
                    <td class="td-value" style="border-right: 1px solid #f8f8f8;"> <span v-if="contract.main.buyType=='融资租赁打包'">
                        融资租赁(打包)
                    </span>
                        <span v-else>
                        {{contract.main.buyType}}
                    </span></td>
                    <td class="td-title">购买价格</td>
                    <td class="td-value">{{fmoney(contract.sales.unitPrice)}}</td>
                </tr>
            </table>
            <!--<div class="month">-->
                <!--<div class="monthDan">到期日期</div>-->
                <!--<div class="data">2018年09月10日</div>-->
            <!--</div>-->
            <!--<div class="moneyList">-->
                <!--<div class="td-title" style="border:1px solid #f8f8f8;background: #f8f8f8;height: 25px;line-height: 25px;">到期信息</div>-->
                <!--<div class="rest">本期剩余应还</div>-->
                <!--<div class="money">130,000,00</div>-->
                <!--<div class="shouldMoney">到期日期:2018年9月10日前还款</div>-->
            <!--</div>-->
            <!--<div class="monthFinish">-->
                <!--<div class="monthMoney">本月已还款金额</div>-->
                <!--<div class="money">403.95</div>-->
            <!--</div>-->
            <div class="customer">
                <div class="left">
                    <p class="title">总欠款</p>
                    <p class="money">{{fmoney(contract.main.totalCustomerArrears)}}</p>
                </div>
                <div class="middle">
                    <p class="title">累计还款</p>
                    <p class="money">{{fmoney(contract.main.accumulatedRepaymentAmount)}}</p>
                </div>
                <div class="right">
                    <p class="title">剩余应还</p>
                    <p class="money">{{fmoney(contract.main.totalCustomerArrears-contract.main.accumulatedRepaymentAmount)}}</p>
                </div>
            </div>
            <div class="moneyList">
                <div class="td-title" style="border:1px solid #f8f8f8;background: #f8f8f8;height: 25px;line-height: 25px;text-align: center;">到期信息</div>
                <div class="left">
                    <p class="title">本月到期总金额</p>
                    <p class="money">36,000.00</p>
                </div>
                <div class="middle">
                    <p class="title">已还金额</p>
                    <p class="money">15,000.00</p>
                </div>
                <div class="right">
                    <div class="title">本期剩余应还</div>
                    <div class="money">21,000,00</div>
                    <div class="shouldMoney">到期日期:2018年9月10日</div>
                </div>
            </div>

            <div class="history">
                <div class="title">历史还款记录</div>
                <ul class="historyMoney">
                    <li class="month">2018年8月10日</li>
                    <li class="money">403.95</li>
                </ul>
                <ul class="historyMoney">
                    <li class="month">2018年7月10日</li>
                    <li class="money">403.95</li>
                </ul>
                <ul class="historyMoney">
                    <li class="month">2018年6月10日</li>
                    <li class="money">403.95</li>
                </ul>
                <ul class="historyMoney">
                    <li class="month">2018年5月10日</li>
                    <li class="money">403.95</li>
                </ul>

            </div>
        </div>
    </div>

</section>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=7e54a132"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=558d0414"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script>
    var app = new Vue({
        el:"#app",
        data:{
            id: $.wyui.page.urlParams.id ? $.wyui.page.urlParams.id : '',
            contract: {
                main: {city: "", customerCredit: ''}
                ,
                acceptance: {}
                ,
                commitment: {}
                ,
                confidentiality: {}
                ,
                guarantee: {}
                ,
                repaymentList: [],
                repaymentFQList: [],
                repaymentRZList: [],
                repaymentDKList: [],
                repaymentSFList: [],
                repaymentRZDBList: [],
                financingRZDBList:[],
                financingRZList: [],
                collectionList: [],
                replacement: {
                    replacementsName: ['wjj'],
                    description: "",
                    wjj: [
                        new Template.jiuJi('挖掘机')
                    ],
                    zzj: [
                        new Template.jiuJi('装载机')
                    ],
                    qiChe: [
                        new Template.qiChe()
                    ],
                    fangWu: [
                        new Template.fangWu()
                    ],
                    other: [
                        new Template.other()
                    ]

                }
                ,
                sales: {}
                ,
                supplementary: {},
                guarantorList: [
                    new Template.guarantorTem()
                ],
            },
            main: {
                city: "",
                regionalSupportName: '',
                repayMent: [
                    new Template.repayMent()
                ],
                repayRZMentFn: [],
                repayRZMentFnDB:[],
                repayFQMent: [],
                repayRZMent: [
                    new Template.repayRZMentList('')
                ],
                repayRZDBMent: [
                    new Template.repayRZMentList('')
                ],
                repaySFMent: [
                    new Template.repaySFMentList('')
                ],
                repayDKMent: [],
            }
        },
        methods:{

        },
        mounted:function () {
            var that = this;
            $.wyui.postMethod(urlConfig.contract.selectContractById, {id: that.id}, function (data) {
                that.contract = data;
                that.auditors = data.auditors;
                that.copiers = data.copiers;
                that.history = data.history;
                that.companyInfo = {city: data.main.city, province: data.main.province};
                that.main.repayFQMent = data.repaymentFQList;
                that.main.repayDKMent = data.repaymentDKList;
                that.main.repayRZMent = data.repaymentRZList;
                that.main.repayRZDBMent = data.repaymentRZDBList;
                that.main.repaySFMent = data.repaymentSFList;
                that.main.repayRZMentFn = data.financingRZList;
                that.main.repayRZMentFnDB = data.financingRZDBList;

            });
        }
    })
</script>
</body>
</html>